package com.vegetable.modules.entity.outbound;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 销售出库单
 * </p>
 *
 * @author wangruijie
 * @since 2024-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SalesOutDeduction对象", description="扣款")
public class SalesOutDeduction implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "回款单id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fcId;

    @ApiModelProperty(value = "销售出库id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long outId;

    @ApiModelProperty(value = "订单时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderTime;

    @ApiModelProperty(value = "单据编号")
    private String docNo;

    @ApiModelProperty(value = "扣款金额")
    private BigDecimal deductionMoney;

    @ApiModelProperty(value = "扣款原因")
    private String deductionReason;

    @ApiModelProperty(value = "扣款类型")
    private Integer deductionType;

    @ApiModelProperty(value = "处理方式")
    private Integer disposalType;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "客戶Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long customerId;

    @ApiModelProperty(value = "客戶名")
    private String customerName;


}
